package com.woniuxy.qimengsystem.controller;

import com.woniuxy.qimengsystem.bean.LogBean;
import com.woniuxy.qimengsystem.service.LogService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (LogBean)表控制层
 *
 * @author makejava
 * @since 2020-08-25 19:37:35
 */
@RestController
@RequestMapping("/log")
public class LogController {
    /**
     * 服务对象
     */
    @Resource
    private LogService logService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("/selectOne")
    public LogBean selectOne(Integer id) {
        return this.logService.queryById(id);
    }

}